package com.mysweethome.entity;

import java.io.Serializable;

public class User implements Serializable{

	private Long id;
	private String name;
	private String password;
	private String sex;
	private String role;
	
	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}

	private UserProperties properties;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public UserProperties getProperties() {
		return properties;
	}

	public void setProperties(UserProperties properties) {
		this.properties = properties;
	}
	
	public static User getGuestUser(){
		User guest = new User();
		guest.setRole("guest");
		return guest;
	}
}
